﻿using SqlSugarAndEntity.Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static SqlSugarAndEntity.Extension.DataModel;
using static SqlSugarAndEntity.DataTransferObject.role.RoleDTO;
using Repository.Base;

namespace IBaseRepository
{
    public interface IMenuRepository:IBaseRepository<sys_menuinfo>
    {
        List<sys_menuinfo> GetMenuByUserId(decimal userId);
        PageListModel<sys_menuinfo> GetLazyMenuTreeNode(decimal? ParentMenuID,int page,int limit);
        DataTable GetMenuTree();
        RoleForMenu GetMenuByRoleId(decimal roleId);
    }
}
